<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
    http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
    
  <description>
   Bean configuration file for the gwc-web module
  </description>

  <import resource="geowebcache-core-context.xml"/>
  <import resource="geowebcache-georss-context.xml"/>
  <import resource="geowebcache-gmaps-context.xml"/>
  <import resource="geowebcache-kmlservice-context.xml"/>
  <import resource="geowebcache-tmsservice-context.xml"/>
  <import resource="geowebcache-virtualearth-context.xml"/>
  <import resource="geowebcache-wmsservice-context.xml"/>
  <import resource="geowebcache-wmtsservice-context.xml"/>

  <import resource="geowebcache-diskquota-context.xml"/>
    
  <!--
    This mappings are different from the standalone gwc ones in that they prepend the /gwc prefix to the context so it
    ends up being, for example, /geoserver/gwc/*
  -->
  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="location">
      <value>classpath:application.properties</value>
    </property>
  </bean>

  <context:component-scan base-package="org.geoserver.gwc.dispatch"/>
  
</beans>
